package com.xinchen.spring.aop.api;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;

/**   
* @Description: 
* @author xinchen   
* @date 2016年10月6日 下午2:19:18 
* @version V1.0   
*/
public class MyThrowsAdvice implements ThrowsAdvice {

	public void afterThrowing(Exception ex) throws Throwable{
		System.out.println("MyThrowsAdvice:afterThrowing 1:");
	}
	public void afterThrowing(Method method,Object[] args,Object target,Exception ex) throws Throwable{
		System.out.println("MyThrowsAdvice:afterThrowing 2:"+method.getName()+"   "
				+target.getClass().getName());
	}
	
}
